//package com.example.demo.test123;
//
//
//
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//
//@RestController
//@RequestMapping("/users")
//public class testuser {
//    @Resource
//    public UserZMapper  userZMapper;
//
//    @RequestMapping(value={"/selectUserById"}, method=RequestMethod.GET)
//    public User1 selectUserById(String id){
//        User1 user = userZMapper.selectUserById(Integer.parseInt(id));
//        return user;
//    }
//    @RequestMapping(value={"/selectUserByName"}, method=RequestMethod.GET)
//    public List<User1> selectUserByName(String userName){
//        return userZMapper.selectUserByName(userName);
//    }
//
//    @RequestMapping(value={"/addUser"}, method=RequestMethod.GET)
//    public void addUser(User1 user){
//        userZMapper.addUser(user);
//    }
//
//    @RequestMapping(value={"/updateUser"}, method=RequestMethod.GET)
//    public void updateUser(User1 user){
//        userZMapper.updateUser(user);
//    }
//
//    @RequestMapping(value={"/deleteUser"}, method=RequestMethod.GET)
//    public void deleteUser(String id){
//        userZMapper.deleteUser(Integer.parseInt(id));
//    }
//
//
//
//
//
////    @Resource
////    public UserMapper userMapper;
////    @Resource
////    public UserZMapper  userZMapper;
////
////    @RequestMapping("/select")
////    public String selectUserById(int id){
////        ArrayList<User1> users = userZMapper.selectallid(id);
////        for (User1 user:users)
////        {
////            System.out.println(user.getId());
////            System.out.println(user.getSex());
////            System.out.println(user.getAge());
////            System.out.println(user.getName());
////        }
////        return "hello";
////    }
////
////    @RequestMapping(value={"/selectUserByName"}, method=RequestMethod.GET)
////    public List<User1> selectUserByName(String userName){
////        return userMapper.selectByExample(userName);
////    }
////
////    @RequestMapping(value={"/addUser"}, method=RequestMethod.POST)
////    public void addUser(User1 user){
////        boolean insert = userZMapper.insert(user.getName(), user.getAge(), user.getSex());
////        System.out.println(insert);
//
//
//    }
//
//
//
//
